var config = require("core/config");
var host = config.host;

var user = host + "/user";

var base = user + "/base";
var login = user + "/login";
var verifycode = user + "/verifycode";
var address = user + "/address";
var black = user + "/black";
var privacy = user + "/privacy";
var topic = user + "/topic";

// 好友申请
var friendApply = user + "/friend/apply";
// 好友
var friend = user + "/friend";
// 用户留言
var message = user + "/message";
var auth = user + "/auth";
var deviceinfo = user + "/deviceinfo";
var spoor = user + "/spoor";
var value = user + "/value";
var moneyLog = user + "/money/log";
var withdraw = user + "/withdraw";
var shield = user + "/shield";
var suggest = user + "/suggest";
var help = user + "/help";
var draw = user + "/draw";
var bank = user + "/bank";
var dict = user + "/sys/dict";
module.exports.url = {
	base : {
		get : base + "/get",
		doUpdate : base + "/doUpdate",
		detail : base + "/detail",
		personal : base + "/personal",
		myBizzInfo : base + "/myBizzInfo",
		search : base + "/search",
		page : base + "/page",
		search4AddFriend : base + "/search4AddFriend",
		getLogo : base + "/getLogo",
		personalV1 : base +"/personalV1",
		getUserBaseConfig : base+ "/getUserBaseConfig"
	},
	login : {
		doLoginWithPhoneCode : login + "/doLoginWithPhoneCode",
		doLoginWithPhonePwd : login + "/doLoginWithPhonePwd",
		doLogout : login + "/doLogout",
		doChangePwd : login + "/doChangePwd",
		initUser : login + "/initUser",
		isCommunityAuth : login + "/isCommunityAuth"
	},
	verifycode : {
		addLoginPhoneCode : verifycode + "/addLoginPhoneCode",
		addChangePhoneCode : verifycode + "/addChangePhoneCode",
		addChangePasswordCode : verifycode + "/addChangePasswordCode"
	},
	address : {
		page : address + "/page",
		add : address + "/add",
		setDefault : address + "/setDefault",
		detail : address + "/detail",
		edit : address + "/edit",
		remove : address + "/remove",
		getDefault : address + "/getDefault"
	},
	black : {
		create : black + "/create",
		del : black + "/delete"
	},
	privacy : {
		get : privacy + "/get",
		create : privacy + "/create",
		del : privacy + "/delete"
	},
	friendApply : {
		add : friendApply + "/add",
		checkFriend : friendApply + "/checkFriend",
		accept : friendApply + "/accept",
		ignore : friendApply + "/ignore",
		reject : friendApply + "/reject",
		myFriendApplyList : friendApply + "/myFriendApplyList",
		face2face : friendApply + "/face2face",
		newFriends : friendApply + "/newFriends",
		remove : friendApply +"/remove"
	},
	friend : {
		myFriendList : friend + "/myFriendList",
		myFriendMap : friend + "/myFriendMap",//带首字母
		del : friend + "/delete",
		// 我的好友(不在某个圈子成员里)
		myFriendOutOfCircle : friend + "/myFriendOutOfCircle",
		addRemark : friend +"/addRemark" //添加备注(参数：userId,remark)
	},
	message : {
		add : message + "/add",
		myMessageFromHer : message + "/myMessageFromHer"
	},
	auth : {
		detail : auth + "/detail",
		edit : auth + "/edit",
		getAuditStatus : auth + "/getAuditStatus"
	},
	topic : {
		page : topic + "/page",
		create : topic + "/create",
		del : topic + "/delete",
		detail : topic + "/detail"
	},
	deviceinfo : {
		add : deviceinfo + "/add"
	},
	spoor : {
		add : spoor + "/add"
	},
	value : {
		changeBg : value + "/changeBg",
		nearbyUsers : value + "/nearbyUsers",
		isShowLocation : value +"/isShowLocation",
		showLocation : value +"/showLocation",
		hideLocation : value +"/hideLocation",
		checkXY:value +"/checkXY",
		addDrawCount:value +"/addDrawCount",
		page: value + "/page",
	},
	moneyLog : {
		page : moneyLog + "/page"
	},
	withdraw:{
		add : withdraw + "/add",
		managePage : withdraw+ "/managePage",
	},
	shield:{
		add : shield + "/add",
		del : shield + "/delete",
		managePage: shield + "/managePage"
	},
	suggest:{
		add : suggest + "/add",
		del : suggest + "/delete",
		managePage: suggest + "/managePage",
		detail : suggest + "/detail"
	},
	draw:{
		add : draw + "/add",
		managePage: draw + "/managePage",
	},
	bank:{
		add : bank + "/add",
		managePage: bank + "/managePage",
		detail : bank + "/detail",
		update: bank + "/update",
		toUpdate : bank + "/toUpdate",
		del: bank + "/delete",
		hasUserBank: bank + "/hasUserBank",
	},
	dict:{
		list : dict + "/list",
	},
	help:{
		page: help + "/page",
		detail: help + "/detail",
	},
};